// var LOCALURL = "localhost:8080";
function myAjax(url,type,data,dataType) {
    let result = null;
    $.ajax({
        url: url,
        type: type,
        async: false,//必须写该句，才能同步处理
        data: data,
        dataType: dataType,
        success: function (data) {
            result = data;
        },
        error: function (data) {
            result = data;
        }
    });
    return result;
}
function uploadAjax(url,type,data,dataType) {
    let result = null;
    $.ajax({
        url: url,
        type: type,
        data: data,
        dataType: dataType,
        async: false,//必须写该句，才能同步处理
        processData: false,
        contentType: false,
        success: function (data) {
            result = data;
        },
        error: function (data) {
            result = data;
        }
    });
    return result;
}
